package com.itheima.user.feign.fallback;

import com.itheima.common.pojo.TbOrder;
import com.itheima.user.feign.OrderFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @作者 itcast
 * @创建日期 2020/10/17 15:31
 **/
@Component
@Slf4j
public class OrderFeignImpl implements OrderFeign {
    /**
     * 服务降级方法
     * @param username
     * @return
     */
    @Override
    public List<TbOrder> findList(String username) {
        log.error("服务器繁忙，请稍后重试");
        return null;
    }
}
